from fastapi import APIRouter, Form
from pydantic import BaseModel,Field,field_validator
from typing import Union,Optional

router = APIRouter()

@router.post("/register")
def register(
    username: str = Form(),
    password: str = Form(),
    email: str = Form(),
    phone: str = Form()
):
    print(username,password,email,phone)
    return {
        "username": username,
        "email": email,
        "phone": phone
    }

